<?php
/*
 * This file starts our application, by defining the base path in which the 
 * application is running and including all application settings. 
 * 
 * It then loads the Kickstart component, sending it the base directory in
 * which the application is running. This starts the proper execution of the 
 * application.
 */
define('BASE_DIR', realpath(__DIR__));
require_once('config/application.php');
require_once('framework/Kickstart.php');	

//TODO: THIS ONLY SENDS THE / stuff, it doesn't send anything after '?'
if (isset($_SERVER['PATH_INFO'])) {
    $url = $_SERVER['PATH_INFO'];
} else {
    $url = "";
}

$k = new Kickstart($url);
$k->kick();